package com.aspose.cells.a.e;

public class zh {
   private int[] a = null;
   private int b = 0;

   public zh() {
      this.a = new int[256];
      this.b();
   }

   public int a() {
      return this.b;
   }

   public void a(byte[] var1) {
      this.a(var1, 0, var1.length);
   }

   public void a(byte[] var1, int var2, int var3) {
      while(var2 < var3) {
         int var4 = this.b;
         var4 >>>= 24;
         var4 ^= var1[var2] & 255;
         this.b <<= 8;
         this.b ^= this.a[var4];
         ++var2;
      }

   }

   private void b() {
      for(int var1 = 0; var1 < 256; ++var1) {
         int var2 = var1 << 24;

         for(int var3 = 0; var3 < 8; ++var3) {
            if ((var2 & Integer.MIN_VALUE) != 0) {
               var2 <<= 1;
               var2 ^= 175;
            } else {
               var2 <<= 1;
            }
         }

         this.a[var1] = var2;
      }

   }
}
